using System.Security.Cryptography;

namespace RushMail;

public static class RushMailHelper
{
    public static string Md5(string str)
    {
        var bytes = MD5.HashData(Encoding.UTF8.GetBytes(str));
        return bytes.Aggregate(new StringBuilder(), (sb, by) => sb.Append($"{by:x2}")).ToString();
    }
}